#!/usr/bin/env bash

curl http://127.0.0.1:8000
echo

# curl http://127.0.0.1:8000/register
# echo

curl http://127.0.0.1:8000/register -d '{"username":"Alice"}'
echo

curl http://127.0.0.1:8000/register -d '{"username":"Alice","pub_key":"ffffff"}'
echo

curl http://127.0.0.1:8000/inbox -d '{"foo":"foo"}'
echo

curl http://127.0.0.1:8000/outbox -d '{"bar":1}'
echo
